﻿@{
    ViewBag.Title = "SearchResult";
}
@model List<Scheduling.Models.CourseInstance>

<h2>Search Results</h2>
<table style="border:none;">
    @foreach (var courseInstance in ViewData.Model)
    {
        <tr>
            <td colspan="4" style="font-weight:bold;">@courseInstance.Course.Name</td>
        </tr>
        <tr>
            <td style="font-weight:bold;">@courseInstance.Course.ID</td>
            <td>@courseInstance.Term</td>
            <td>@courseInstance.Year</td>
            <td><a href="javascript:AddSchedule(@courseInstance.ID)">Add</a></td>
        </tr>
    }
</table>